package com.amos.muexamclient.sys.service;

import com.amos.muexamclient.sys.service.dto.SysDeptDTO;
import com.amos.muexamclient.sys.service.dto.TreeSelect;
import com.amos.muexamcore.core.BasePageService;

import java.util.List;
import java.util.Map;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.muexamclient.sys.service
 * @ClassName SysDeptService
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020-03-15 10:39:17
 * @Version 1.0
 **/
public interface SysDeptService extends BasePageService<SysDeptDTO> {

    List<TreeSelect> treeSelect(SysDeptDTO dto);

    List<SysDeptDTO> buildDeptTree(List<SysDeptDTO> depts);

    Map<String,Object> roleDeptTreeselect(String id);

    String remove(String deptId);

    boolean hasChildByDeptId(String deptId);

    boolean checkDeptExistUser(String deptId);

}
